package com.easy.api.aop;

public enum ParamType {

    String("String","java.lang.String"),
    Map("Map","java.util.Map"),
    Integer("Integer","java.lang.Integer");

    private String code;
    private String desc;

    ParamType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static ParamType toEnum(String code) {
        for (ParamType category : ParamType.values()) {
            if (category.getCode().equals(code)) {
                return category;
            }
        }
        return null;
    }



    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
